window.onload = function() {

    let nav = document.querySelector(".nav12")
    let nav1_11 = document.querySelector(".nav1-11");
    let nav1_12 = document.querySelector(".nav1-12");
    let nav1_2 = document.querySelector(".nva1-2");
    let nav1_4 = document.querySelector(".nva1-4");
    let navImg = document.querySelector(".jx-ewmLoginLink");
    let er = document.querySelector(".er");

    navImg.addEventListener("click", function() {
        er.style.display = "block";
        nav1_4.style.display = "none"
        nav1_2.style.display = "none";

    });
    nav1_11.addEventListener("click", function() {
        nav1_12.style.color = "#666";
        nav1_11.style.color = "red";
        nav1_2.style.display = "block"
        nav1_4.style.display = "none"

    });
    nav1_12.addEventListener("click", function() {
        nav1_12.style.color = "red";
        nav1_11.style.color = "#666";
        nav1_2.style.display = "none"
        nav1_4.style.display = "block"
    })
}